package com.cyf.db.bean;

import lombok.Data;

/**
 * @author hfy
 * @date 2018/11/29
 */
@Data
public class LocalPayWayFlow {

    public static final int PAY_WAY_CASH = 1;
    public static final int PAY_WAY_WECHAT = 2;
    public static final int PAY_WAY_ALI = 3;
    public static final int PAY_WAY_OTHER = 0;

    private Integer id;
    private Integer parkingId;
    private Integer localPaywayFlowId;
    private Integer payWay;
    private Integer timeKey;
    private Integer actualFee;

    public String getPayWayDesc() {
        switch (this.payWay) {
            case PAY_WAY_CASH:
                return "现金";
            case PAY_WAY_WECHAT:
                return "微信";
            case PAY_WAY_ALI:
                return "支付宝";
            default: {
                return "其他";
            }
        }
//        return "其他";
    }
}
